import React, { useContext } from 'react'
import GlobalContext from './Context'

export default function Child2() {
  console.log('Child2')
  const { state } = useContext(GlobalContext)
  return <div>Child2-{state.a}</div>
}
